package com.zlx.mall.basic.common.property;

import com.zlx.mall.basic.util.json.JacksonUtil;
import org.slf4j.Logger;
import org.springframework.beans.factory.InitializingBean;

/**
 * Abstract Property
 *
 * @author qingke
 **/
public abstract class AbstractProperty implements InitializingBean {

    /**
     * Logger
     *
     * @return Logger
     */
   protected abstract Logger getLogger();

    @Override
    public void afterPropertiesSet() throws Exception {
        getLogger().info("> Initializing Properties: {}", JacksonUtil.toJsonString(this));
    }
}
